/* 全局样式 */

::v-deep(.uni-forms-item) {
  margin-bottom: 10px !important;
}

::v-deep(.uni-card) {
  overflow: visible !important;
}

/* 导航栏全局样式 */
page {
  --xen-navbar-height: 0px; /* 会被组件动态更新 */
}

/* 内容区域通用样式，适用于需要避开导航栏的页面 */
.page-content {
  padding-top: var(--xen-navbar-height);
}

/* 安全区域底部适配 */
.safe-area-bottom {
  padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.2以下 */
  padding-bottom: env(safe-area-inset-bottom); /* iOS 11.2+ */
}

/* 修复日期选择器层级问题 */
/* #ifdef MP-WEIXIN */
/* 确保日期选择器弹出层在所有元素之上 */
.uni-datetime-picker__container-popup,
.uni-datetime-picker-popup,
.uni-datetime-picker-range-popup {
  z-index: 10000 !important;
  position: fixed !important;
}

.uni-datetime-picker__mask {
  z-index: 9999 !important;
  position: fixed !important;
}

/* 针对可能的原生选择器 */
picker,
.picker-container,
.picker-content {
  z-index: 10000 !important;
}

/* 确保在抽屉环境中也能正常显示 */
.drawer-wrapper .uni-datetime-picker__container-popup,
.drawer-container .uni-datetime-picker__container-popup,
.drawer-wrapper .uni-datetime-picker-popup,
.drawer-container .uni-datetime-picker-popup {
  z-index: 10001 !important;
  position: fixed !important;
}
/* #endif */